﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrl_vl_left_home.ascx.cs" Inherits="web_Controls_ctrl_vl_left_home" %>
<%@ Register TagName="ctrl_vl_left_hot_jobs" TagPrefix="vlbd" Src="~/web/Controls/ctrl_vl_left_hot_jobs.ascx" %>
<%@ Register TagName="ctrl_vl_left_news_main" TagPrefix="vlbd" Src="~/web/Controls/ctrl_vl_left_news_main.ascx" %>
<%@ Register TagName="ctrl_vl_left_top_ntd" TagPrefix="vlbd" Src="~/web/Controls/ctrl_vl_left_top_ntd.ascx" %>

<div id="vl_main_ct">
    <div id="vl_main_cts">
        <div id="vl_main_ct_cts_main">
            <div id="vl_main_blk_top" class="vl_main_blk">
                	<table style="width: 99%;">
                        <tbody>
                            <tr>
                                <td style="width: 50%;">
                                    <div class="vl_block_tag_home">
                                        <div class="vl_block_tag_home_top">
                                            <div class="vl_block_tag_home_top_l"></div>
                                            <div class="vl_block_tag_home_top_r"></div>
                                            <div class="vl_block_tag_home_top_c"></div>
                                        </div>
                                        <div class="vl_block_tag_home_m">
                                            <ul class="vl_block_tag_home_tt">
						                        <li class="tag_home_tt_active" id="vieclam_1" onclick="ViewBlock('vieclam', 1);">việc làm mới nhất</li>
						                        <li  id="vieclam_2" onclick="ViewBlock('vieclam', 2)">Việc làm tiêu biểu</li>
					                        </ul>
                                            <div class="vl_block_tag_home_m_content">
					                            <div id="divJobBoard" style="align:top; overflow:scroll; overflow-y:hidden; overflow-x:hidden; height:170px;width: 100%; text-align:left ;" onMouseOver="this.style.overflowY='scroll';clearInterval(iTimerdivJobBoard)" onMouseOut="this.style.overflowY='hidden';iTimerdivJobBoard= setInterval('scrollDivForThongKe(divJobBoard)', 300);"> 
						                        <ul id="vl_block_vieclam_1">
						                                <asp:Repeater ID="rpt_vieclam_new" runat="server">
						                                    <ItemTemplate>
						                                        <li><a href="Default.aspx?page=vtn_chitiet&id=<%#DataBinder.Eval(Container.DataItem, "ma_ho_so") %>"><b><%#DataBinder.Eval(Container.DataItem, "tieu_de_ho_so") %></b>(số lượng: <%#DataBinder.Eval(Container.DataItem, "so_luong_tuyen") %>), <%#DataBinder.Eval(Container.DataItem, "ten_dia_chi") %></a></li>
						                                    </ItemTemplate>
						                                </asp:Repeater>					    
						                        </ul>
                        						
						                        <ul id="vl_block_vieclam_2" style="display:none;">
						                            <asp:Repeater ID="rpt_vieclam_noibat" runat="server">
						                                <ItemTemplate>
						                                    <li><a href="Default.aspx?page=vtn_chitiet&id=<%#DataBinder.Eval(Container.DataItem, "ma_ho_so") %>"><b><%#DataBinder.Eval(Container.DataItem, "tieu_de_ho_so")%></b>(số lượng: <%#DataBinder.Eval(Container.DataItem, "so_luong_tuyen") %>), <%#DataBinder.Eval(Container.DataItem, "ten_dia_chi") %></a></li>
						                                </ItemTemplate>
						                            </asp:Repeater>						
						                        </ul>
						                        </div>
					                        </div>
                                        </div>
                                        <div class="vl_block_tag_home_bottom">
                                        <div class="vl_block_tag_home_bottom_l"></div>
                                        <div class="vl_block_tag_home_bottom_r"></div>
                                        <div class="vl_block_tag_home_bottom_c"></div>
                                    </div>
                                    </div>
                                </td>
                                <td style="width: 50%;">
                                        <div class="vl_block_tag_home">
                                            <div class="vl_block_tag_home_top">
                                                <div class="vl_block_tag_home_top_l"></div>
                                                <div class="vl_block_tag_home_top_r"></div>
                                                <div class="vl_block_tag_home_top_c"></div>
                                            </div>
                                            <div class="vl_block_tag_home_m">
                                                <ul class="vl_block_tag_home_tt">
						                            <li class="tag_home_tt_active" id="ungvien_1" onclick="ViewBlock('ungvien', 1);">ứng viên mới nhất</li>
						                            <li id="ungvien_2" onclick="ViewBlock('ungvien', 2);">ứng viên nổi bật</li>
					                            </ul>
					                            <div class="vl_block_tag_home_m_content">
						<div id="divResume" style="align:top; overflow:scroll; overflow-y:hidden; overflow-x:hidden; height:170px;width: 100%; text-align:left ;" onmouseover="this.style.overflowY='scroll';clearInterval(iTimerdivResume)" onmouseout="this.style.overflowY='hidden';iTimerdivResume= setInterval('scrollDivForThongKe(divResume)', 300);"> 
						<ul id="vl_block_ungvien_1">
						    <asp:Repeater ID="rpt_ungvien_new" runat="server">
						        <ItemTemplate>
						            <li>
						                <a href="Default.aspx?page=ntv_chitiet&idntv=<%#DataBinder.Eval(Container.DataItem, "ma_nguoi") %>"> 
						                <b><%#DataBinder.Eval(Container.DataItem, "ho_ten") %></b> (NS: <%#DataBinder.Eval(Container.DataItem, "ngaysinh_vn") %>)
                                        <%#DataBinder.Eval(Container.DataItem, "ten_chuyen_mon") %>
						                </a>
						            </li>
						        </ItemTemplate>
						    </asp:Repeater>
						</ul>
						<ul id="vl_block_ungvien_2" style="display:none">
							<asp:Repeater ID="rpt_ungvien_noibat" runat="server">
						        <ItemTemplate>
						            <li>
						                <a href="Default.aspx?page=ntv_chitiet&idntv=<%#DataBinder.Eval(Container.DataItem, "ma_nguoi") %>"> 
						                <b><%#DataBinder.Eval(Container.DataItem, "ho_ten") %></b> (NS: <%#DataBinder.Eval(Container.DataItem, "ngaysinh_vn") %>)
                                        <%#DataBinder.Eval(Container.DataItem, "ten_chuyen_mon") %>
						                </a>
						            </li>
						        </ItemTemplate>
						    </asp:Repeater>
						</ul>
						</div>
					</div>
                                            </div>
                                            <div class="vl_block_tag_home_bottom">
                                                <div class="vl_block_tag_home_bottom_l"></div>
                                                <div class="vl_block_tag_home_bottom_r"></div>
                                                <div class="vl_block_tag_home_bottom_c"></div>
                                            </div>
                                        </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
            </div>
            
            <div id="vl_main_blk_middle" class="vl_main_blk">
            <div class="vl_block_tag_home">
                <div class="vl_block_tag_home_top">
                    <div class="vl_block_tag_home_top_l"></div>
                    <div class="vl_block_tag_home_top_r"></div>
                    <div class="vl_block_tag_home_top_c"></div>
                </div>
                <div class="vl_block_tag_home_m">
                    <ul class="vl_block_tag_home_tt">
                        <li class="tag_home_tt_active" id="timkiem_1" onclick="ViewBlock('timkiem', 1);">tìm theo ngành nghề</li>
						<li id="timkiem_2" onclick="ViewBlock('timkiem', 2);">TÌm theo chức danh</li>
                    </ul>
                <div class="vl_block_tag_home_m_content">
						<div id="divJob1" style="overflow:scroll; overflow-y:hidden; overflow-x:hidden; height:270px;" onMouseOver="this.style.overflowY='scroll';"> 
						<ul id="vl_block_timkiem_1">
						    <asp:Repeater ID="rpt_group_by_nganh" runat="server">
						        <ItemTemplate>
						            <li><a href="web/pages/DanhsachVLT.aspx?page=timviec&type=nganhnghe&id=<%#DataBinder.Eval(Container.DataItem, "ma_chuyen_mon") %>"><%#DataBinder.Eval(Container.DataItem, "ten_chuyen_mon") %>(<%#DataBinder.Eval(Container.DataItem, "total") %>)</a></li>
						        </ItemTemplate>
						    </asp:Repeater>
						</ul>
						<ul id="vl_block_timkiem_2" style="display:none">
						    <asp:Repeater ID="rpt_group_by_chucdanh" runat="server">
						        <ItemTemplate>
						            <li><a href="web/pages/DanhsachVLT.aspx?page=timviec&type=chucdanh&id=<%#DataBinder.Eval(Container.DataItem, "ma_chuc_danh") %>"><%#DataBinder.Eval(Container.DataItem, "ten_chuc_danh") %>(<%#DataBinder.Eval(Container.DataItem, "total") %>)</a></li>
						        </ItemTemplate>
						    </asp:Repeater>
						</ul>
						</div>
                </div>
                </div>
                <div class="vl_block_tag_home_bottom">
                    <div class="vl_block_tag_home_bottom_l"></div>
                    <div class="vl_block_tag_home_bottom_r"></div>
                    <div class="vl_block_tag_home_bottom_c"></div>
                </div>
            </div>
        </div>
        
            <div id="vl_main_blk_bottom" class="vl_main_blk">
                <asp:Panel ID="panel_center" runat="server" Height="100%" Width="100%">
                </asp:Panel>
            </div>
        </div>
    </div>
</div>
<script>
    function ViewBlock(name, id)
    {
        if(name == 'vieclam')
        {
            if(id == 1)
            {
                document.getElementById('vl_block_vieclam_1').style.display = 'block';
                document.getElementById('vieclam_1').setAttribute("class","tag_home_tt_active");
                document.getElementById('vieclam_1').setAttribute("className","tag_home_tt_active");
                document.getElementById('vl_block_vieclam_2').style.display = 'none';
                document.getElementById('vieclam_2').setAttribute("class","");
                document.getElementById('vieclam_2').setAttribute("className","");
            }
            if(id == 2)
            {
                document.getElementById('vl_block_vieclam_2').style.display = 'block';
                document.getElementById('vieclam_2').setAttribute("class","tag_home_tt_active");
                document.getElementById('vieclam_2').setAttribute("className","tag_home_tt_active");
                document.getElementById('vl_block_vieclam_1').style.display = 'none';
                document.getElementById('vieclam_1').setAttribute("class","");
                document.getElementById('vieclam_1').setAttribute("className","");
            }
        }
        if(name == 'ungvien')
        {
            if(id == 1)
            {
                document.getElementById('vl_block_ungvien_1').style.display = 'block';
                document.getElementById('ungvien_1').setAttribute("class","tag_home_tt_active");
                document.getElementById('ungvien_1').setAttribute("className","tag_home_tt_active");
                document.getElementById('vl_block_ungvien_2').style.display = 'none';
                document.getElementById('ungvien_2').setAttribute("class","");
                document.getElementById('ungvien_2').setAttribute("className","");
            }
            if(id == 2)
            {
                document.getElementById('vl_block_ungvien_2').style.display = 'block';
                document.getElementById('ungvien_2').setAttribute("class","tag_home_tt_active");
                document.getElementById('ungvien_2').setAttribute("className","tag_home_tt_active");
                document.getElementById('vl_block_ungvien_1').style.display = 'none';
                document.getElementById('ungvien_1').setAttribute("class","");
                document.getElementById('ungvien_1').setAttribute("className","");
            }
        }
        if(name == 'timkiem')
        {
            if(id == 1)
            {
                document.getElementById('vl_block_timkiem_1').style.display = 'block';
                document.getElementById('timkiem_1').setAttribute("class","tag_home_tt_active");
                document.getElementById('timkiem_1').setAttribute("className","tag_home_tt_active");
                document.getElementById('vl_block_timkiem_2').style.display = 'none';
                document.getElementById('timkiem_2').setAttribute("class","");
                document.getElementById('timkiem_2').setAttribute("className","");
            }
            if(id == 2)
            {
                document.getElementById('vl_block_timkiem_2').style.display = 'block';
                document.getElementById('timkiem_2').setAttribute("class","tag_home_tt_active");
                document.getElementById('timkiem_2').setAttribute("className","tag_home_tt_active");
                document.getElementById('vl_block_timkiem_1').style.display = 'none';
                document.getElementById('timkiem_1').setAttribute("class","");
                document.getElementById('timkiem_1').setAttribute("className","");
            }
        }
    }
</script>